var limsMethodCertificateUser = Gikam.getPageObject({

    getEditListColumns : function() {
        return [ {
            checkbox : true
        }, {index: true},Gikam.status.getBpmnColumn(limsMethodCertificateUser.workflow.dbTable), {
            field : 'personCode',//用户名
            title : 'T_LIMS_PERSON.PERSONCODE',
            type: 'link'
        }, {
            field : 'personName',//姓名
            title : 'T_LIMS_PERSON.PERSONNAME'
        }, {
            field : 'initials',//姓名缩写
            title : 'T_LIMS_PERSON.INITIALS'
        }, {
            field : 'ext$.employNumber',//员工编号
            title : 'T_LIMS_PERSON.EMPLOYNUMBER'
        }, {
            field : 'ext$.dept',//部门
            title : 'T_LIMS_PERSON.DEPT'
        }, {
            field : 'createdByName',
            title : 'T_LIMS_METHOD_CERTIFICATE_USER.CREATEDBYNAME'
        }, {
            field : 'createdTime',
            title : 'T_LIMS_METHOD_CERTIFICATE_USER.CREATEDTIME'
        } ];
    },

    getBaseInfoFormFields : function() {
        return [{
            field : 'personCode',//用户名
            title : 'T_LIMS_PERSON.PERSONCODE',
            type : 'choose',
            search : true,
            single : true,
            category : 'personChoose',
            preInsert : true,
           /* onBeforeChoose: function () {
                return {
                    target_filter: encodeURI(JSON.stringify({
                        type: 'unassigned',
                        targetTable: 'T_LIMS_METHOD_CERTIFICATE_USER',
                        targetMatchColumn: 'personId',
                        thisMatchColumn: 'id'
                    })),
                    createdByOrgId_SEQ : workspace.user.ext$.loginorgid
                }
            },*/
            onAfterChoose : function(rows) {
                if (!Gikam.isEmpty(rows)) {
                    this.setData({
                        personId : rows[0].id,
                        personName : rows[0].personName,
                        personCode : rows[0].personCode,
                        initials : rows[0].initials,
                    });
                }
            },
            validators : [ 'strLength[0,33]' ]

        },  {
            field : 'personName',
            title : 'T_LIMS_PERSON.PERSONNAME',
            preInsert : true,
            readonly: true,
        }, {
            field : 'initials',//姓名缩写
            title : 'T_LIMS_PERSON.INITIALS',
            preInsert : true,
            readonly: true,
        }, {
            field : 'ext$.employNumber',//员工编号
            title : 'T_LIMS_PERSON.EMPLOYNUMBER',
            readonly: true,
        }, {
            field : 'ext$.dept',//部门
            title : 'T_LIMS_PERSON.DEPT',
            readonly: true,
        }, {
            field : 'createdByName',
            title : 'T_LIMS_METHOD_CERTIFICATE_USER.CREATEDBYNAME',
            readonly: true,
        }, {
            field : 'createdTime',
            title : 'T_LIMS_METHOD_CERTIFICATE_USER.CREATEDTIME',
            readonly: true,
        } ];
    },

    getAuditListColumns : function() {
        return [ {
            checkbox : true
        }, {index: true},Gikam.status.getBpmnColumn(limsMethodCertificateUser.workflow.dbTable), {
            field : 'personCode',//用户名
            title : 'T_LIMS_PERSON.PERSONCODE',
            type: 'link'
        }, {
            field : 'personName',//姓名
            title : 'T_LIMS_PERSON.PERSONNAME'
        }, {
            field : 'initials',//姓名缩写
            title : 'T_LIMS_PERSON.INITIALS'
        },  {
            field : 'ext$.employNumber',//员工编号
            title : 'T_LIMS_PERSON.EMPLOYNUMBER'
        }, {
            field : 'ext$.dept',//部门
            title : 'T_LIMS_PERSON.DEPT'
        }, {
            field : 'createdByName',
            title : 'T_LIMS_METHOD_CERTIFICATE_USER.CREATEDBYNAME'
        }, {
            field : 'createdTime',
            title : 'T_LIMS_METHOD_CERTIFICATE_USER.CREATEDTIME'
        } ];
    },

    getSearchListColumns : function() {
        return [ {
            checkbox : true
        }, {index: true},Gikam.status.getBpmnColumn(limsMethodCertificateUser.workflow.dbTable), {
            field : 'personCode',//用户名
            title : 'T_LIMS_PERSON.PERSONCODE',
            type: 'link'
        }, {
            field : 'personName',//姓名
            title : 'T_LIMS_PERSON.PERSONNAME'
        }, {
            field : 'initials',//姓名缩写
            title : 'T_LIMS_PERSON.INITIALS'
        },  {
            field : 'ext$.employNumber',//员工编号
            title : 'T_LIMS_PERSON.EMPLOYNUMBER'
        }, {
            field : 'ext$.dept',//部门
            title : 'T_LIMS_PERSON.DEPT'
        }, {
            field : 'createdByName',
            title : 'T_LIMS_METHOD_CERTIFICATE_USER.CREATEDBYNAME'
        }, {
            field : 'createdTime',
            title : 'T_LIMS_METHOD_CERTIFICATE_USER.CREATEDTIME'
        } ];
    },

    getChooseListColumns : function() {
        return [{index: true}, {
            field : 'ext$.personcode',//用户名
            title : 'T_LIMS_PERSON.PERSONCODE'
        }, {
            field : 'personName',//姓名
            title : 'T_LIMS_METHOD_CERTIFICATE_USER.PERSONNAME'
        }, {
            field : 'ext$.initials',//姓名缩写
            title : 'T_LIMS_PERSON.INITIALS'
        }, {
            field : 'ext$.employNumber',//员工编号
            title : 'T_LIMS_PERSON.EMPLOYNUMBER'
        }, {
            field : 'ext$.dept',//部门
            title : 'T_LIMS_PERSON.DEPT'
        }, {
            field : 'createdByName',
            title : 'T_LIMS_METHOD_CERTIFICATE_USER.CREATEDBYNAME'
        }, {
            field : 'createdTime',
            title : 'T_LIMS_METHOD_CERTIFICATE_USER.CREATEDTIME'
        } ];
    },

    baseUrl : IFM_CONTEXT + '/secure/basemodule/coredata/method-certificate-users',

    workflow : {
        dbTable : 'T_LIMS_METHOD_CERTIFICATE_USER',
        columns : [ {
            field : 'id',
            title : 'T_LIMS_METHOD_CERTIFICATE_USER.ID'
        } ]
    }

});
